package cn.gok.homework;
public class Book {
    private int bid;
    private String name;
    private float price;


    private void sell(Float price, String person){
        System.out.println("显示本书卖给了"+person+"卖了"+price+"元");
    }
    public void sell(){
        System.out.println(this.name+"已出售");
    }

    @Override
    public String toString() {
        return "Book{" +
                "bid=" + bid +
                ", name='" + name + '\'' +
                ", price=" + price +
                '}';
    }

    public Book(int bid, String name, float price) {
        this.bid = bid;
        this.name = name;
        this.price = price;
    }

    public int getBid() {
        return bid;
    }

    public void setBid(int bid) {
        this.bid = bid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }
}